package org.alanlau;

import org.alanlau.test.TestConfiguration;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

/**
 * @author alan
 * @version 1.0
 * @date 2020/12/1 23:19
 */
@Configuration
@EnableConfigurationProperties({DemoProperties.class})
@ConditionalOnProperty(prefix = "org.alanlau", value = "enabled", havingValue = "true", matchIfMissing = true)
@Import({TestConfiguration.class})
public class DemoAutoConfiguration {

}
